#header{ }# #body{
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5></h5>
			</div>
			<div class="ibox-content">
				<form method="post" action='!!SplitUrl(sprintf("homepage/column/%supdate ",self::$db_tie))!!'>
					<input name="id" value="!!isset($output[0])?$output[0]:'0'!!" hidden/>
					<!--<input name="data[img1]" id="img1" value="!!isset($output[0])?$output['img1']:''!!" hidden/>-->
					<input name="data[content]" id="content" hidden="" />

					<div class="form-horizontal m-t">
						<div class="form-group">
							<label class="col-sm-1 control-label">菜单名：</label>
							<div class="col-sm-5">
								<input class="form-control" name="data[menu]" size="10" type="text" value="!!isset($output[0])?$output['menu']:''!!" />
								<span class="field-validation-error" veri-for=""></span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-1 control-label">标题：</label>
							<div class="col-sm-5">
								<input class="form-control" name="data[title]" size="10" type="text" value="!!isset($output[0])?$output['title']:''!!" />
								<span class="field-validation-error" veri-for=""></span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-1 control-label">描述：</label>
							<div class="col-sm-5">
								<input class="form-control" name="data[describe]" size="10" type="text" value="!!isset($output[0])?$output['describe']:''!!" />
								<span class="field-validation-error" veri-for=""></span>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-1 control-label">文件上传：</label>
							<div class="col-sm-4">
								<div class="upload">
									<div class="uploadPreview1">
									</div>
									<div class="left">
										<div class="uploadProgressBar"></div>
										<div class="uploadBut1">选择文件</div>
									</div>
									<div class="clear"></div>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-1 control-label">内容：</label>
							<div class="col-sm-11">
								<!--script标签之间不能有换行和空格，否则新建的时候文本框会自动添加换行和空格-->
								<script type="text/plain" id="Body">
									!!isset($output[0])?$output['content']:''!!
								</script>
								<span class="field-validation-error" veri-for="Body"></span>
							</div>
						</div>

						<div class="form-group">
							<div class="col-sm-2 col-sm-offset-1">
								<button class="btn btn-primary" onclick="return submit_form()">保存</button>
								<a href='!!SplitUrl(sprintf(" homepage/column/%s ",self::$db_tie))!!' class="btn btn-sm btn-white"> 返 回 </a>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>

}# #footer{
<!-- umeditor -->
<link type="text/css" rel="stylesheet" href="/css_js/umeditor/themes/default/css/umeditor.css">
<script type="text/javascript" src="/css_js/umeditor/umeditor.config.js?time=!!date(" Ymdhis ")!!"></script>
<script type="text/javascript" src="/css_js/umeditor/umeditor.js"></script>
<script type="text/javascript" src="/css_js/umeditor/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">
	//验证输入
	function verify() {
		if($("input[name='data[title]']").val() == "") {
			$("[name='data[title]']").next().html('请输入标题')
			return false;
		}
		if($("#content").val() == "<p><br></p>") {
			$("[veri-for='Body']").html('请输入内容')
			return false;
		}
		return true;
	}

	function submit_form() {
		$("#content").val($("#Body").html());
		return verify();
	}

	window.UMEDITOR_CONFIG.imageUrl = '!!SplitUrl(sprintf("homepage/column/%sEditUp/upfile ",self::$db_tie))!!';
	var um1 = UM.getEditor('Body');
	um1.addListener('fullscreenchanged', resetbody);

	function resetbody(type, isfullscreen) {
		if(!isfullscreen) {
			// 重置编辑器内容区域高度，这个高度在切换全屏时会改变，应该是 UMEditor 自身的BUG
			$("body").css("overflow", "");
		}
	}
</script>

<!-- webuploader --上传文件 -->
<link rel="stylesheet" href="/css_js/webuploader/webuploader.css" type="text/css" />
<script src="/css_js/webuploader/webuploader.min.js"></script>
<!--myProgress-->
<link rel="stylesheet" href="/css_js/myProgress/myProgress.css">
<script src="/css_js/myProgress/myProgress.js"></script>
<script type="text/javascript">
	//上传
	function upload(button, div, input) {

		var uploader = WebUploader.create({
			// 自动上传
			auto: true,
			// 选择文件的按钮
			pick: button,
			// swf文件路径
			swf: '/content/www/lib/webuploader/Uploader.swf',
			// 文件接收服务端。
			server: '!!SplitUrl(sprintf("homepage/column/%sUp/file",self::$db_tie))!!',
			method: 'POST'
		});

		$(div).html('<div class="progress-out"><div class="percent-show"><span>0</span>%</div>    <div class="progress-in direction-left" style="width: 0%;"></div></div>!!$output['
			file ']!!');

		uploader.on('uploadProgress', function(file, percentage) {
			//			console.log(file)

			per = Math.round(percentage * 100)
			//			console.log(per)
			//			$(div).html("上传中..."+percentage);
			$(".progress-out").myProgress({
				speed: 100,
				percent: per,
				width: "100%",
				height: "30px"
			});
		});

		uploader.on('uploadSuccess', function(file, response) {

			//文件效验
			if(response == "-1") //简单的图片上传需要验证
				$(div).html('文件出错（超出服务器允许上传的体积，请设置php.ini）');
			else if(response == "-2")
				$(div).html('类型不允许');
			else if(response == "-3")
				$(div).html('文件太大');
			else {
				//获取原始数据
				var data = response._raw;
				$(div).html("<div>" + data + "</div>");
				$(input).val(data);
			}
		});

		uploader.on('uploadError', function(file) {
			$(div).html("上传失败");
		});

	}
	//上传图片
	$(function() {
		upload('.uploadBut1', ".uploadPreview1", "#img1");
	})
</script>

}#